package com.lzx.service.zlzs.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.lzx.mapper.zlzs.GerminationMapper;
import com.lzx.mapper.zlzs.MachiningMapper;
import com.lzx.model.zlzs.Germination;
import com.lzx.model.zlzs.Machining;
import com.lzx.service.zlzs.GerminationService;
import com.lzx.service.zlzs.MachiningService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;

@Service("germinationService")
public class GerminationServiceImpl extends ServiceImpl<GerminationMapper,Germination> implements GerminationService {
    @Autowired
    private GerminationMapper germinationMapper;



    @Override
    public List<Germination> selectdemolist( ){
        try {
            return germinationMapper.selectdemolist();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }

    @Override
    public Germination selectdemobyid(String id){
        try {
            return germinationMapper.selectdemobyid(id);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }
}
